package com.zy.chat.vo;

import com.zy.chat.entity.GroupMessages;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class GroupmsgsDoc {
    private Integer id;

    private  String groupName;

    private  String fromUser;

    private String content;

    private String sendTime;

    private String type;

    public GroupmsgsDoc(GroupMessages groupMessages){
        this.id=groupMessages.getId();
        this.groupName=groupMessages.getGroupName();
        this.fromUser=groupMessages.getFromUser();
        this.content=groupMessages.getContent();
        this.sendTime=groupMessages.getSendTime();
        this.type=groupMessages.getType();
    }
}
